package Assignment.Test6;

public class Cat extends Animal{
    public Cat() {
    }

    public Cat(int age, String color,String name) {
        super(age, color,name);
    }

    @Override
    public void eat(String something) {
        System.out.println(super.getName()+"吃"+something);
    }

    public void catchMouse(){
        System.out.println("猫在抓老鼠");
    }
}
